﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_index_ask : System.Web.UI.UserControl
{
    public int FetchNum = 6;
    protected void Page_Load(object sender, EventArgs e)
    {
        MatchIns.BLL.PageInfo PI = new MatchIns.BLL.PageInfo(FetchNum, 1);
        PI.OrderBy = "order by answernum desc";
        List<MatchIns.Model.TWenDa> ds = new MatchIns.BLL.TWenDa().GetPageList(PI).List;
        if (ds.Count == 0)
            rpAsk.FooterTemplate = new EmptyData("<li>暂无热门问答。</li>");
        rpAsk.DataSource = ds;
        rpAsk.DataBind();
    }
}